/**
 * 
 */
package webCrawler;

/**
 * @author mingfan
 *
 */
public interface LinkHandler {

	/**
	 * Place link in the queue for future process
	 * @param link
	 * @throws Exception
	 */
	void queueLink(final String link) throws Exception;
	
	/**
	 * Returns the number of visited links
	 * @return
	 */
	int getNumberOfVisitedLinks();
	
	/**
	 * Check if given link is visited
	 * @param link
	 * @return
	 */
	boolean isVisited(final String link);
	
	/**
	 * Mark give link as visited
	 * @param link
	 */
	void addVisitedLink(final String link);
	
}
